package santeclair.referentiel.webservice.mock;

import java.util.Arrays;
import java.util.List;

import santeclair.referentiel.bean.Departement;
import santeclair.referentiel.service.DepartementService;

/**
 * Mock du service DepartementService de referentiel-fwk.
 * Pour les tests unitaire sur les webservices du referentiel.
 * 
 * @author tsensebe
 * 
 */
public class DepartementServiceMock implements DepartementService {

    @Override
    public List<Departement> findAllDepartement() {
        Departement depMock1 = new Departement();
        depMock1.setCode("01");
        depMock1.setLibelle("Ain");

        Departement depMock2 = new Departement();
        depMock2.setCode("02");
        depMock2.setLibelle("Aisne");

        Departement depMock3 = new Departement();
        depMock3.setCode("03");
        depMock3.setLibelle("Allier");

        Departement depMock4 = new Departement();
        depMock4.setCode("04");
        depMock4.setLibelle("Alpes de Haute Provence");

        Departement depMock5 = new Departement();
        depMock5.setCode("05");
        depMock5.setLibelle("Hautes Alpes");

        return Arrays.asList(depMock1, depMock2, depMock3, depMock4, depMock5);
    }

    @Override
    public List<Departement> findAllDepartementFrancais() {
        Departement depMock1 = new Departement();
        depMock1.setCode("01");
        depMock1.setLibelle("Ain");

        Departement depMock2 = new Departement();
        depMock2.setCode("02");
        depMock2.setLibelle("Aisne");

        Departement depMock3 = new Departement();
        depMock3.setCode("03");
        depMock3.setLibelle("Allier");

        Departement depMock4 = new Departement();
        depMock4.setCode("04");
        depMock4.setLibelle("Alpes de Haute Provence");

        Departement depMock5 = new Departement();
        depMock5.setCode("05");
        depMock5.setLibelle("Hautes Alpes");

        return Arrays.asList(depMock1, depMock2, depMock3, depMock4, depMock5);
    }

    @Override
    public Departement findDepartementByNumero(String numero) {
        return null;
    }

}
